API Documentation
BoundingBox.h
1 // BoundingBox.h
3 //
5 
6 namespace nkGraphics
7 {
13  class BoundingBox final
14  {
15  public :
16 
33  BoundingBox (const nkMaths::Vector& center, float cubeHalfSide) ;
40  BoundingBox (const nkMaths::Vector& center, const nkMaths::Vector& axisAlignedHalfSides) ;
45 
46  // Getters
63 
64  // Setters
79 
80  // Updates
86  void updateTransformation (Node* node) ;
87 
88  // Checks
95  bool checkAgainst (const Frustum& frustum) const ;
96  } ;
97 }
nkGraphics::BoundingBox::updateTransformation
void updateTransformation(Node *node)
nkGraphics::BoundingBox::getTransformedPoints
nkMemory::BufferView< const nkMaths::Vector > getTransformedPoints() const
nkGraphics::BoundingBox::~BoundingBox
~BoundingBox()
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkGraphics::BoundingBox::BoundingBox
BoundingBox(const nkMemory::BufferView< const nkMaths::Vector > &points)
nkGraphics::BoundingBox::setPoints
void setPoints(const nkMemory::BufferView< const nkMaths::Vector > &points)
nkGraphics::BoundingBox
A bounding box. Often used to encompass object's bounds in the world.
Definition: BoundingBox.h:14
nkGraphics::BoundingBox::getPoints
nkMemory::BufferView< const nkMaths::Vector > getPoints() const
nkGraphics::BoundingBox::BoundingBox
BoundingBox(const nkMaths::Vector &center, const nkMaths::Vector &axisAlignedHalfSides)
nkGraphics::BoundingBox::getCenter
nkMaths::Vector getCenter() const
nkGraphics::BoundingBox::setTransformedPoints
void setTransformedPoints(const nkMemory::BufferView< const nkMaths::Vector > &points)
nkGraphics::BoundingBox::BoundingBox
BoundingBox()
nkGraphics::Frustum
Defines a frustum.
Definition: Frustum.h:16
nkGraphics::BoundingBox::BoundingBox
BoundingBox(const nkMaths::Vector &center, float cubeHalfSide)
nkGraphics::Node
Represents a node in a scene graph.
Definition: Node.h:14
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkMaths::Vector
A 4-component vector class, with floats.
Definition: Vector.h:12
nkGraphics::BoundingBox::getAxisAlignedSides
nkMaths::Vector getAxisAlignedSides() const
nkGraphics::BoundingBox::checkAgainst
bool checkAgainst(const Frustum &frustum) const